package de.edb.dao;

import static org.junit.Assert.*;

import org.hibernate.SessionFactory;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import org.springframework.orm.hibernate3.HibernateTemplate;
import org.springframework.test.AbstractTransactionalDataSourceSpringContextTests;

@SuppressWarnings("deprecation")
public abstract class AbstractDataAccessTest
extends AbstractTransactionalDataSourceSpringContextTests
{
private SessionFactory sessionFactory;

/**
 * Reference the Spring configuration file for the test case.
 */
 protected String[] getConfigLocations()
 {
     return new String[]{ "test-application-context.xml" };
 }

/** /eventdb/src/test-application-context.xml
 * Spring will automatically inject the SessionFactory instance on startup.
 * Only necessary for Hibernate-backed DAO testing
 */
 public void setSessionFactory(SessionFactory sessionFactory)
 {
	 this.sessionFactory = sessionFactory;
 }
}